#include <QtCore/QCoreApplication>

#include <QString>
#include <QTextStream>

#include <stdio.h>

#include "MyTraceCore.h"

using namespace std;

QTextStream cin(stdin, QIODevice::ReadOnly);
QTextStream cout(stdout, QIODevice::WriteOnly);
QTextStream cerr(stderr, QIODevice::WriteOnly);

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QString LogStr;
    TTrace Trace;

    LogStr = "";
    Trace.ProceedCommandLine(argc, argv, LogStr);
    cout << LogStr << endl;

    //Trace.Routes.append(new TRoute("rutor.org"));
    //Trace.Routes.append(new TRoute("tut.by"));

    bool DoLoop = true;
    while (DoLoop)
    {
        LogStr = "";
        DoLoop = Trace.Trace(LogStr);
        cout << LogStr << endl;
    }


    //return a.exec();

    getchar();
}
